﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WeatherView
{
    /// <summary>
    /// Interaction logic for AboutBox.xaml
    /// 
    /// Details application information
    /// </summary>
    public partial class AboutBox : Window
    {
        public AboutBox()
        {
            InitializeComponent();
        }

        private void BTNCloseAboutBox_Click(object sender, RoutedEventArgs e) // Closes window
        {
            About.Close();
        }

        private void BTNViewLicense_Click(object sender, RoutedEventArgs e) // View licensing information
        {
            WebPresenter WebViewer = new WebPresenter();  // presents project documentation using web presenter
            WebViewer.WebViewer.Source = new Uri("http://code.google.com/p/weatherview/wiki/Licensing");
            WebViewer.Title = "Weather View License Information";
            WebViewer.ShowDialog(); //prevents window being ignored
        }
    }
}
